/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.util.ArrayList;

/**
 *
 * @author aeguzkiza
 */

public class Patient {
    
    // Model variables.
    private int Id;
    private String PatientID;
    private String Name;
    private String SurName;
    private String Sex;
    private String BirthDate;
    private String Comments;
    private ArrayList<Study> study = new ArrayList();

    /*private static Patient P = new Patient();

    public static Patient getInstance() {
        return P;
    }

    private ArrayList<PatientListener> patientListener = new ArrayList();
    public void registerListener( PatientListener patientListener ) { this.patientListener.add(patientListener); }*/

    public Patient() {
    }
    // Insert data.
    public Patient(int Id,String PatientID,String Name,String SurName,String Sex,String BirthDate,String Comments){
        this.Id = Id;
        this.PatientID = PatientID;
        this.Name = Name;
        this.SurName = SurName;
        this.Sex = Sex;
        this.BirthDate = BirthDate;
        this.Comments = Comments;
    }


    // Take out data.
    public int getId() {
        return this.Id;
    }
    public String getPatientID() {
        return this.PatientID;
    }
    public String getName() {
        return this.Name;
    }
    public String getSurName() {
        return this.SurName;
    }
    public String getBirthDate() {
        return this.BirthDate;
    }
    public String getSex() {
        return this.Sex;
    }    
    public String getComments() {
        return this.Comments;
    }

}
